#include <stdio.h>
#include <stdlib.h>

int main()
{
    int n;
    scanf("%d",&n);
    while(n%2!=0)
    {
        scanf("%d",&n);
    }
    printf("%d\n",n);
    return 0;
}
